#include "SYSTEM/delay/delay.h"
#include "SYSTEM/sys/sys.h"
#include "SYSTEM/usart/usart.h"
#include "BSP/LED/led.h"
#include "BSP/BEEP/beep.h"
#include "BSP/KEY/key.h"
#include "BSP/EXTI/exti.h"

int main() {
	HAL_Init();
	sys_stm32_clock_init(9);
	delay_init(72);
	usart_init(72, 115200);
	led_init();
	beep_init();
	key_init();
	extix_init();
	int time = 0;
	
	while (1) {
		printf("waiting for press key...\n");
		delay_ms(3000);
		time += 3;
		printf("already waiting for %d seconds.\n", time);
		delay_ms(1000);
		time += 1;
	}
}
